<script setup lang="ts">
// import { reactive } from "vue";

// 全局配置
// const config = reactive({
//   button: {
//     autoInsertSpace: true,
//   },
//   message: {
//     max: 5,
//   },
// })
</script>

<template>
  <router-view />
  <!-- 使用全局配置 -->
  <!-- <el-config-provider :button="config.button" :message="config.message">
    <router-view v-slot="{ Component }">
      <template v-if="$route.meta.keepAlive">
        <keep-alive>
          <component :is="Component" />
        </keep-alive>
      </template>
      <component :is="Component" v-else />
    </router-view>
  </el-config-provider> -->
  <!-- <router-view v-slot="{ Component }">
      <template v-if="$route.meta.keepAlive">
        <keep-alive>
          <component :is="Component" />
        </keep-alive>
      </template>
      <component  v-else  :is="Component"/>
    </router-view> -->
</template>

<style lang="scss"></style>
